package com.jchy.graph.core;
 
import java.awt.Color;

public class Pixel {

	private long id;
	
	private double x, y;
	private Color theColor;
	
	public Pixel(double inX, double inY, Color inColor)
	{
		theColor = inColor;
		x = inX;
		y = inY;
	}
	
	public Pixel(double inX, double inY)
	{
		theColor = new Color(0f, 0f, 0f);
		x = inX;
		y = inY;
	}
	
	
	public void setTheColor(Color inColor)
	{
		theColor = inColor;
	}
	
	public double getX()
	{
		return x;
	}
	
	public double getY()
	{
		return y;
	}
	
	public void setX(double inX)
	{
		x = inX;
	}
	
	public void setY(double inY)
	{
		y = inY;
	}
	
	public Color getTheColor()
	{
		return theColor;
	}
	
	public String toString()
	{
		return "( " + String.valueOf(x) + ", " + String.valueOf(y) + ")";
	}
	
	public void setId(long inId)
	{
		id = inId;
	}
	
	public long getId()
	{
		return id;
	}	
}
